import request from '@/utils/request'

// 查询列表
export function listArticles(query) {
    return request({
        url: '/employ/article/list',
        method: 'get',
        params: query
    })
}

// 查询详细
export function getArticles(id) {
    return request({
        url: '/employ/article/' + id,
        method: 'get'
    })
}

// 新增
export function addArticles(data) {
    return request({
        url: '/employ/article',
        method: 'post',
        data: data
    })
}

// 修改
export function updateArticles(data) {
    return request({
        url: '/employ/article',
        method: 'put',
        data: data
    })
}

// 删除
export function delArticles(id) {
    return request({
        url: '/employ/article/' + id,
        method: 'delete'
    })
}

// 隐藏
export function hideArticles(id) {
    return request({
        url: '/employ/article/' + id,
        method: 'post'
    })
}


